package iotwisp.school.user.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Data
@EqualsAndHashCode(callSuper = false)
@DynamicUpdate
@Entity
@DiscriminatorValue("admin_menu")
public class AdminMenu extends Permission {

    @Column(name = "link", length = 32)
    private String link;

    @Column(name = "icon", length = 32)
    private String icon;

    @Column(name = "code", length = 32)
    private String code;
}
